home *** CD-ROM | disk | FTP | other *** search
- Merge: An Ascii File Merger
-
- by: Keith Peterson
-
- Algonquin, IL
-
-
- This program is public domain. Feel free to copy it around, but do
- leave my name attached.
-
- Overview
-
- Merge will merge a list of data with a text file, sending the file
- to the printer over and over, external data merged in place, until it
- runs out of external data. Multiple data merges per document are
- allowed. It is a simple utility, but quick, easy to use and VERY
- generic.
-
- There are a million more powerful print mergers in the world, but
- none that can be customized to the bizarre requirements of the real
- world so quickly.
-
- MergeP is the same program, but prints to the screen rather than
- the printer. Nice for figuring out what it will do.
-
-
- The Rest of the story...
-
-
- Merge is the result of a frustrating attempt to merge a list of
- data generated in any random fashion into a text document. It seems that
- most word processors require exotic extra programs or data labeling,
- thus this utility.
-
- Merge will merge two Ascii files together: a text file and a data
- file. Both can have any name, and a variety of delimiters is acceptable.
-
- The text file may be generated in any way. If the file can be
- typed to the screen, it will work. Line feeds (ascii 10) will be ignored.
-
- Put a ^ at every location where you intend data to be inserted.
- This character can be replaced by any that you wish to use, just look at
- the source.
-
- The data file is also nothing special. Put a carriage return, a
- tab or a comma between data items. Keep in mind that a tab in most word
- processors will turn into several spaces if it must be CONVERTED to
- ascii. If the word processor works directly on ascii files, it should be
- all right.
-
- To run the program, you need either basic (for the slow,
- uncompiled version) or basrun.exe. Execute the program in the typical
- method for the version you are using and enter the file names of your
- text and data files. Note that extensions ARE required and may be
- anything you desire.
-
- The program will print the text file, and when a ^ is encountered
- will pull the next data element in and send it to the printer. Text file
- print is then resumed.
-
- When the end of the text file is encountered, the file will be
- closed, re-opened and printing started again. This repeats until the
- data file ends. The program counts the number of passes and reports when
- done.
-
- You will need to exercise normal care in lining up your input
- data. I recommend that you put all inputs for each text dump on one
- line, seperated by commas. This will help keep them straight.
-
- This is a simple little utility, but keep it around for the day
- that you find that your favorite word processor really won't merge
- letters with the output of your favorite data base, and the boss says "I
- thought these computers were fast......"
-
- Keith Peterson
- 3/5/85
-
-